package com.eorchis.module.classuser.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.eorchis.utils.utils.PropertyUtil;

/**
* Title: ExportUserBean<br>
* Description: <br>
* Company: GOLDGOV<br>
* Copyright @ 2014 ORCHIS .All rights reserved.<br>
* @author NingSS
* @createDate 2014-1-9
* @version $Revision:$
*/
public class ExportClassUserBean {
	private String userId;//学员id
	private String rank;//职级
	private String userName;//学员姓名
	private String depName;//单位名称
	private String loginID;//登陆id
	private String className;//班级名称
	private String classNum;//班级编号
	private String trainingDeptName;//举办院校
	private Integer attendanceState;//考勤状态 1 全勤 2 缺勤 3 请假
	private String attendanceStateName;//考勤状态名称
	private Integer auditingState;//审核状态
	private String auditingStateName;//审核状态
	private String ministrieName;//承办部委名称
	//委托部委办班在线报名系统
	private String position;//职位
	private String sex;//性别
	private Integer age;//年龄
	private String phone;//手机电话
	private String mobileTelephone;//手机号码
	private String folkName;//民族
	private String remark;//备注
	
	/*GUOLEI 20160129*/
	private String administrativeLevel;//级别（选）
	private String dutyRemark;//单位及职务
	private Double trainingHour;//考核学时
	
	private String sponsorID;//主办单位
	private Date beginDate;//开班时间  
	private Date endDate;//结班时间
	private String trainingAddress;//培训地点
	private Date birthday;//生日
	private Double trainingHours;//学时
	private String birthdayStr;//出生日期字符串
	private String beginDateStr;//开班时间  
	private String endDateStr;//结班时间	
	private String sponsorName;//主办单位
	private String classDescription;//培训机构

	private String auditingDateStr;//审核状态
	private String createDateStr;//报名时间
	
	private String examinationRemark;//考核备注
	private String examinationResult;//考核结果

	private String depnameOne;//一级单位
	private String depnameTwo;//二级单位
	private String paperNum;//身份证
	
	public String getBeginDateStr() {
		if(PropertyUtil.objectNotEmpty(beginDate)){
			SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd");
			String birthdayStr = sd.format(beginDate); 
			return birthdayStr;
		}
		return beginDateStr;
	}
	public void setBeginDateStr(String beginDateStr) {
		this.beginDateStr = beginDateStr;
	}
	public String getEndDateStr() {
		if(PropertyUtil.objectNotEmpty(endDate)){
			SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd");
			String birthdayStr = sd.format(endDate); 
			return birthdayStr;
		}
		return endDateStr;
	}
	public void setEndDateStr(String endDateStr) {
		this.endDateStr = endDateStr;
	}
	public String getBirthdayStr() { 
		if(PropertyUtil.objectNotEmpty(birthday)){
			SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM");
			String birthdayStr = sd.format(birthday); 
			return birthdayStr;
		}
        return "";
	}
	public void setBirthdayStr(String birthdayStr) {
		this.birthdayStr = birthdayStr;
	}
	
	public Double getTrainingHours() {
		return trainingHours;
	}
	public void setTrainingHours(Double trainingHours) {
		this.trainingHours = trainingHours;
	}
	public String getSponsorID() {
		return sponsorID;
	}
	public void setSponsorID(String sponsorID) {
		this.sponsorID = sponsorID;
	}
	public Date getBeginDate() {
		return beginDate;
	}
	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public String getTrainingAddress() {
		return trainingAddress;
	}
	public void setTrainingAddress(String trainingAddress) {
		this.trainingAddress = trainingAddress;
	}
	public String getAdministrativeLevel() {
		return administrativeLevel;
	}
	public void setAdministrativeLevel(String administrativeLevel) {
		this.administrativeLevel = administrativeLevel;
	}
	public String getDutyRemark() {
		return dutyRemark;
	}
	public void setDutyRemark(String dutyRemark) {
		this.dutyRemark = dutyRemark;
	}
	public Double getTrainingHour() {
		return trainingHour;
	}
	public void setTrainingHour(Double trainingHour) {
		this.trainingHour = trainingHour;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getDepName() {
		return depName;
	}
	public void setDepName(String depName) {
		this.depName = depName;
	}
	public String getLoginID() {
		return loginID;
	}
	public void setLoginID(String loginID) {
		this.loginID = loginID;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getClassNum() {
		return classNum;
	}
	public void setClassNum(String classNum) {
		this.classNum = classNum;
	}
	public String getTrainingDeptName() {
		return trainingDeptName;
	}
	public void setTrainingDeptName(String trainingDeptName) {
		this.trainingDeptName = trainingDeptName;
	}
	public Integer getAttendanceState() {
		return attendanceState;
	}
	public void setAttendanceState(Integer attendanceState) {
		this.attendanceState = attendanceState;
	}
	public String getAttendanceStateName() {
		if(this.getAttendanceState()!=null) {
			if (this.getAttendanceState() == 1)
				return "全勤";
			if (this.getAttendanceState() == 2)
				return "非全勤";
			if (this.getAttendanceState() == 3)
				return "未出勤（请假）";
			if (this.getAttendanceState() == 4)
				return "未出勤（未请假）";
		}
		return attendanceStateName;
	}
	public void setAttendanceStateName(String attendanceStateName) {
		this.attendanceStateName = attendanceStateName;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getRank() {
		return rank;
	}
	public void setRank(String rank) {
		this.rank = rank;
	}
	public Integer getAuditingState() {
		return auditingState;
	}
	public void setAuditingState(Integer auditingState) {
		this.auditingState = auditingState;
	}
	public String getAuditingStateName() {
		if(this.getAuditingState()!=null) {
			if(this.getAuditingState().equals(ClassUser.IS_AUDITING_Y))
				return "报名通过";
			else if(this.getAuditingState().equals(ClassUser.IS_AUDITING_N))
				return "报名未通过";
			else if(this.getAuditingState().equals(ClassUser.NO_AUDITING))
				return "报名待审核";
			else if(this.getAuditingState().equals(ClassUser.NO_AUDITING_CX))
				return "撤销待审核";
			else if(this.getAuditingState().equals(ClassUser.IS_AUDITING_Y_CX_N))
				return "报名通过(撤销驳回)";
			else
				return "匿名用户";
		}
		return auditingStateName;
	}
	public void setAuditingStateName(String auditingStateName) {
		this.auditingStateName = auditingStateName;
	}
	public String getMinistrieName() {
		return ministrieName;
	}
	public void setMinistrieName(String ministrieName) {
		this.ministrieName = ministrieName;
	}
	public String getPosition() {
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getFolkName() {
		return folkName;
	}
	public void setFolkName(String folkName) {
		this.folkName = folkName;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getSponsorName() {
		return sponsorName;
	}
	public void setSponsorName(String sponsorName) {
		this.sponsorName = sponsorName;
	}
	public String getClassDescription() {
		return classDescription;
	}
	public void setClassDescription(String classDescription) {
		this.classDescription = classDescription;
	}
	public String getAuditingDateStr() {
		return auditingDateStr;
	}
	public void setAuditingDateStr(String auditingDateStr) {
		this.auditingDateStr = auditingDateStr;
	}
	public String getCreateDateStr() {
		return createDateStr;
	}
	public void setCreateDateStr(String createDateStr) {
		this.createDateStr = createDateStr;
	}
	public String getExaminationRemark() {
		return examinationRemark;
	}
	public void setExaminationRemark(String examinationRemark) {
		this.examinationRemark = examinationRemark;
	}
	public String getExaminationResult() {
		return examinationResult;
	}
	public void setExaminationResult(String examinationResult) {
		this.examinationResult = examinationResult;
	}
	public String getMobileTelephone() {
		return mobileTelephone;
	}
	public void setMobileTelephone(String mobileTelephone) {
		this.mobileTelephone = mobileTelephone;
	}
	public String getDepnameOne() {
		return depnameOne;
	}
	public void setDepnameOne(String depnameOne) {
		this.depnameOne = depnameOne;
	}
	public String getDepnameTwo() {
		return depnameTwo;
	}
	public void setDepnameTwo(String depnameTwo) {
		this.depnameTwo = depnameTwo;
	}
	public String getPaperNum() {
		return paperNum;
	}
	public void setPaperNum(String paperNum) {
		this.paperNum = paperNum;
	}
	
}
